package com.tweetsaroundme.main;

import java.util.Iterator;
import java.util.List;

import com.tweetsaroundme.twitter.Twitter;
import com.tweetsaroundme.twitter.Twitter.Status;
import com.tweetsaroundme.twitter.Twitter.User;


/**
 * This is temp test class from testing the Twitter API and accessing the methods and 
 * calls to from twitter,
 * 
 * @author niallmulhare
 */

class main {
    public static void main(String[] args) {
        
        // Make a Twitter object
    	Twitter twitter = new Twitter("CHANGE_THIS","CHANGE_THIS");
    	List<Status> lstStatus = twitter.getUserTimeline() ;
    	Iterator<Status> statusIte = lstStatus.iterator();
    	while (statusIte.hasNext()){
    		Status status = statusIte.next();
    		User statusUser = status.user;
    		System.out.println(status.getText());
    		System.out.println(status.geoTag);
    	}
    }
}
